﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 货架管理
    /// </summary>
    [Table("PB_Rack")]
    public class PB_Rack
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 货架编号
        /// </summary>
        public String Code { get; set; }

        /// <summary>
        /// 货架名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 货区ID
        /// </summary>
        public String AreaId { get; set; }
        //[ForeignKey(nameof(AreaId))]
        //public PB_Storage PB_Storage { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public String QrCode { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /// 纬度
        /// </summary>
        public String Latitude { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public String Longitude { get; set; }
        /// <summary>
        /// 长
        /// </summary>
        public Double? Long { get; set; }
        /// <summary>
        /// 宽
        /// </summary>
        public Double? Width { get; set; }
        /// <summary>
        /// 高
        /// </summary>
        public Double? Height { get; set; }
        /// <summary>
        /// 层数
        /// </summary>
        public Int32 Ceng { get; set; }
    }
    public class PB_RackPrint
    {
        /// <summary>
        /// 货架id
        /// </summary>
        public  List<string> RackID { get; set; }
        /// <summary>
        /// 打印机id
        /// </summary>
        public string PrintID { get; set; }
  
    }
}